﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>

    
    <title>商品分类管理</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    

   <link rel="stylesheet" href="../css/style2.css" type="text/css"></link></head>
  
<body class="p10">



   <form action="/shop-admin/RoleServlet?method=update" method="post" >
	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td height="30">
							<table border="0" cellpadding="0" cellspacing="0" width="100%">
								<tbody>
									<tr>
										<td class="title1" height="24">
											<div class="f_right">
												<span class="White"> 
												<img src="../images/add.gif" height="10" width="10"> &nbsp
												</span>
												<span class="STYLE1"> &nbsp;</span>
											</div>
											<img src="../images/tb.gif" height="14" width="14" class="ico">商品分类管理
										</td>
									</tr>
								</tbody>
							</table>
								<div style="margin-top: 8px"></div>
					</td>
				</tr>
				<tr>
    <td>
		<c:forEach items="${sessionScope.cates}" var="cateLevelOne">
			 <table class="table1" width="100%" border="0" cellpadding="0" cellspacing="1">
				<tr  class="tr" > 
					<td width="30%"><div align="center" >一级分类</div></td><td><div align="center">二级分类</div></td>
				</tr>
				
				<tr> 
					<td style="padding-left: 30px" >
						<table>
							<tr>
								<td width="170px">
										${cateLevelOne.cateName}
						 		</td>
						 		<td>
						 			<a href="CateEdit.jsp?oneName=${cateLevelOne.cateName}&cateName=${cateLevelOne.cateName}&id=${cateLevelOne.id}">修改</a>&nbsp;|&nbsp;
						 			<a href="../goodcate?catemethod=del&cateid=${cateLevelOne.id}" onclick="return confirm('确定要进行删除操作吗')">删除</a>
						 		</td>
					 	  </tr>

						 </table>
				    </td>
					<td  style="padding-left: 30px">
					<table>
						<c:forEach items="${cateLevelOne.childs}" var="cateLevelTwo">
							<tr>
								<td width="170px">

										<label>${cateLevelTwo.cateName}</label></a>

								</td>
								  <td><a href="CateEdit.jsp?oneName=${cateLevelOne.cateName}&cateName=${cateLevelTwo.cateName}&cateid=${cateLevelTwo.id}">修改</a>&nbsp;|&nbsp;<a href="../goodcate?catemethod=del&cateid=${cateLevelTwo.id}" onclick="return confirm('确定要进行删除操作吗')">删除</a></td>
							</tr>
							</c:forEach>
						</table>
					</td>
				</tr>
			</table>
			</c:forEach>
  </tr>

</table>
<br/>
&nbsp;&nbsp;<label style="color:red"></label>



   </form>
   
   
  </body>

</html>